<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<title>jQuery效果</title>
		<script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
	</head>
	<body>
		<img id="img1" src="img/003.jpg" width="100" />
		<input id="btn1" type="button" value="显示隐藏切换" />
		<input id="btn2" type="button" value="淡入淡出切换" />
		<input id="btn3" type="button" value="滑入滑出切换" />
		<script type="text/javascript">
			$(function(){
				$("#btn1").click(function(){
					$("#img1").toggle("slow");
				});
			});
			
			$(function(){
				$("#btn2").click(function(){
					$("#img1").fadeTo("slow",0.5);
				});
			});
			
			$(function(){
				$("#btn3").click(function(){
					$("#img1").slideToggle(5000);
				});
			});
		</script>
		
	</body>
</html>
